#import "AppDelegate.h"
#import "UIVCParameters.h"
#import "rc_control.h"

@implementation UINavigationController (ViewRotate)

- (BOOL)shouldAutorotate
{
    return YES;
}

- (NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskAll;
}

@end

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    rc_init();
    
    UIVCParameters* controller = [[UIVCParameters alloc] init];
    
    UINavigationController* naviController = [[UINavigationController alloc] initWithRootViewController:controller];
    naviController.navigationBar.translucent = NO;
    
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.rootViewController = naviController;
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}

@end
